<titlemenu></titlemenu>
<div class="dj-card">
    <div class="dj-body" activate-input activate-select>
        <form role="form" novalidate
              name="editForm">
            <div class="dj-formtable">
                <table class="dj-table">
                    <tr>
                        <th>年度</th>
                        <td width="200">
                            <select name="nd" ng-model="formmodel.nd"
                                    ng-options="type.dickey as type.dicvalue for type in ndList"
                                    required>
                                <option value="" selected>-- 请选择 --</option>
                            </select>
                        </td>
                        <td style="text-align: right">
                            <button class="btn btn-default1" ng-click="search()">生成</button>
                            <button class="btn btn-default1" role-permission-code="ysjybedit.btn.create"
                                    ng-click="create()">确认提交
                            </button>
                            <button class="btn btn-default1" role-permission-code="ysjybedit.btn.export"
                                    ng-click="export()">导出表格
                            </button>
                        </td>
                    </tr>
                </table>
            </div>
        </form>
        <div class="dj-list-content">
            <div class="card" >
                <div class="zero-list-table-panel">
                    <div class="zero-source-table-div" style="height: 550px;">

                            <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap" >
                                <thead>
                                <tr>
                                    <th rowspan="2">序号</th>
                                    <th class="col-md-3" rowspan="2">单位</th>
                                    <th colspan="4">车间级党(总)支部数</th>
                                    <th class="col-md-2" rowspan="2">党支部经费小计</th>
                                    <th colspan="4">核定标准</th>
                                    <th class="col-md-2" rowspan="2">在岗党员人数</th>
                                    <th class="col-md-3" rowspan="2">核定标准（{{hdbzmodel.hdbz}}/人）</th>
                                    <th class="col-md-3" rowspan="2">系统预算总额</th>
                                    <th class="col-md-3" rowspan="2">实际预算总额</th>
                                </tr>
                                <tr>
                                    <th class="col-md-1">50人及以下</th>
                                    <th class="col-md-1">51-100人</th>
                                    <th class="col-md-1">101-300人</th>
                                    <th class="col-md-1">300人以上</th>

                                    <th>50人及以下（{{hdbzmodel.v1}}/个）</th>
                                    <th>51-100人（{{hdbzmodel.v2}}/个）</th>
                                    <th>101-300人（{{hdbzmodel.v3}}/个）</th>
                                    <th>300人以上（{{hdbzmodel.v4}}/个）</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr ng-repeat="lm in items|orderBy:'xtysze':true">
                                    <td scope="row">{{$index+1}}</td>
                                    <td>{{lm.dzzmc}}</td>
                                    <td>{{lm.v1sl}}</td>
                                    <td>{{lm.v2sl}}</td>
                                    <td>{{lm.v3sl}}</td>
                                    <td>{{lm.v4sl}}</td>
                                    <td>{{lm.dzbjfxj}}</td>
                                    <td>{{lm.v1hdbz}}</td>
                                    <td>{{lm.v2hdbz}}</td>
                                    <td>{{lm.v3hdbz}}</td>
                                    <td>{{lm.v4hdbz}}</td>
                                    <td>{{lm.zgdyrs}}</td>
                                    <td>{{lm.hdbz}}</td>
                                    <td>{{lm.xtysze}}</td>
                                    <td>
                                        <input name="sjysze" ng-model="lm.sjysze" style="width: 80px" type="text"
                                               type="number"/>
                                    </td>
                                </tr>
                                <tr ng-if="items.length>0">
                                    <td></td>
                                    <td style="color:red">全学院总计</td>
                                    <td style="color:red">{{items|sum:'v1sl'}}</td>
                                    <td style="color:red">{{items|sum:'v2sl'}}</td>
                                    <td style="color:red">{{items|sum:'v3sl'}}</td>
                                    <td style="color:red">{{items|sum:'v4sl'}}</td>
                                    <td style="color:red">{{items|sum:'dzbjfxj'}}</td>
                                    <td style="color:red">{{items|sum:'v1hdbz'}}</td>
                                    <td style="color:red">{{items|sum:'v2hdbz'}}</td>
                                    <td style="color:red">{{items|sum:'v3hdbz'}}</td>
                                    <td style="color:red">{{items|sum:'v4hdbz'}}</td>
                                    <td style="color:red">{{items|sum:'zgdyrs'}}</td>
                                    <td style="color:red">{{items|sum:'hdbz'}}</td>
                                    <td style="color:red">{{items|sum:'xtysze'}}</td>
                                    <td style="color:red">{{items|sum:'sjysze'}}</td>
                                </tr>
                                <tr ng-if="lmList.length<=0">
                                    <td colspan="5" style="text-align:center">暂无数据</td>
                                </tr>
                                </tbody>
                            </table>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
